//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package test.test;

import java.util.Random;

public class 评委打分 {
    public 评委打分() {
    }

    public static void main(String[] args) {
        extracted();
    }

    private static void extracted() {
        Random rand = new Random();
        int[] ints = new int[6];
        int max = 0;
        int min = 101;

        for(int i = 0; i < 6; ++i) {
            int score = rand.nextInt(101);
            ints[i] = score;
            if (score > max) {
                max = score;
            } else if (score < min) {
                min = score;
            }
        }

        for(int i = 0; i < ints.length; ++i) {
            if (ints[i] == max) {
                ints[i] = 0;
                break;
            }
        }

        for(int i = 0; i < ints.length; ++i) {
            if (ints[i] == min) {
                ints[i] = 0;
                break;
            }
        }

        int count = 0;

        for(int i = 0; i < ints.length; ++i) {
            count += ints[i];
        }

        int avg = count / 4;
        System.out.println("选手的得分为：" + avg);
    }
}
